package com.nfit.shopweb.mapper;

import com.nfit.shopmodel.dto.product.CategoryBrandDto;
import com.nfit.shopmodel.entity.product.Brand;
import com.nfit.shopmodel.entity.product.CategoryBrand;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName:CotegoryBrandMapper
 * Package:com.nfit.shopweb.mapper
 * Description
 *
 * @Author L
 * @Create 2024/12/12 9:53
 */
@Mapper
public interface CategoryBrandMapper {

    /**
     * 查询分类品牌
     * @param categoryBrandDto 条件
     */
    List<CategoryBrand> page(CategoryBrandDto categoryBrandDto);

    /**
     *
     * 删除分类品牌
     * @param id 分类品牌id
     */
    void deleteCategoryBrand(Long id);

    /**
     * 添加分类品牌
     */
    void saveCategoryBrand(CategoryBrand categoryBrand);

    /**
     * 修改分类品牌
     * @param categoryBrand 实体
     */
    void updateCategoryBrand(CategoryBrand categoryBrand);


}
